var wechatEvent = require("core").wechat.Event;

var Event = {
    CLICK : require('./CLICK'),
    LOCATION : require('./ELOCATION'),
    image : require('./image'),
    link : require('./link'),
    location : require('./location'),
    SCAN : require('./SCAN'),
    shortvideo : require('./shortvideo'),
    subscribe : require('./subscribe'),
    text : require('./text'),
    unsubscribe: require('./unsubscribe'),
    video: require('./video'),
    VIEW : require('./VIEW'),
    voice : require('./voice')
};

var eventReg = function(){
    wechatEvent.on("CLICK", Event.CLICK);
    wechatEvent.on("LOCATION", Event.LOCATION);
    wechatEvent.on("image", Event.image);
    wechatEvent.on("link", Event.link);
    wechatEvent.on("location", Event.location);
    wechatEvent.on("SCAN", Event.SCAN);
    wechatEvent.on("shortvideo", Event.shortvideo);
    wechatEvent.on("subscribe", Event.subscribe);
    wechatEvent.on("text", Event.text);
    wechatEvent.on("unsubscribe", Event.unsubscribe);
    wechatEvent.on("video", Event.video);
    wechatEvent.on("VIEW", Event.VIEW);
    wechatEvent.on("voice", Event.voice);
};

module.exports = eventReg;
